<!-- 用户中心侧边栏导航 -->
<div class="lg:col-span-1 hidden lg:block">
    <div class="bg-white rounded-sm p-6 ">
        <!-- 用户信息 -->
        <div class="text-center mb-6 pb-6 border-b border-gray-200">
            <div class="w-16 h-16 rounded-full mx-auto mb-3 overflow-hidden">
                <img src="{$user.avatar}" alt="用户头像" class="w-full h-full object-cover user-avatar">
            </div>
            <h3 class="font-semibold text-gray-800">{$user.nickname|default='未设置昵称'}</h3>
        </div>

        <!-- 导航菜单 -->
        <nav class="space-y-2">
            <a href="{:_url_('user.index')}"
                class="flex items-center px-3 py-2 rounded-sm {if $current == 'index'}bg-blue-50 text-blue-500{else}text-gray-500 hover:bg-gray-100 hover:text-blue-500 transition-colors{/if}">
                <i class="fas fa-home mr-3"></i>
                <span>用户中心</span>
            </a>
            <a href="{:_url_('user.order')}"
                class="flex items-center px-3 py-2 rounded-sm {if $current == 'order'}bg-blue-50 text-blue-500{else}text-gray-500 hover:bg-gray-100 hover:text-blue-500 transition-colors{/if}">
                <i class="fas fa-shopping-bag mr-3"></i>
                <span>我的订单</span>
            </a>
            <a href="{:_url_('user.favorite')}"
                class="flex items-center px-3 py-2 rounded-sm {if $current == 'favorite'}bg-blue-50 text-blue-500{else}text-gray-500 hover:bg-gray-100 hover:text-blue-500 transition-colors{/if}">
                <i class="fas fa-heart mr-3"></i>
                <span>我的收藏</span>
            </a>
            <a href="{:_url_('user.level')}"
                class="flex items-center px-3 py-2 rounded-sm {if $current == 'level'}bg-blue-50 text-blue-500{else}text-gray-500 hover:bg-gray-100 hover:text-blue-500 transition-colors{/if}">
                <i class="fas fa-crown mr-3"></i>
                <span>会员等级</span>
            </a>
            <a href="{:_url_('user.vip')}"
                class="flex items-center px-3 py-2 rounded-sm {if $current == 'vip'}bg-blue-50 text-blue-500{else}text-gray-500 hover:bg-gray-100 hover:text-blue-500 transition-colors{/if}">
                <i class="fas fa-gem mr-3"></i>
                <span>VIP会员</span>
            </a>
            <a href="{:_url_('user.sign')}"
                class="flex items-center px-3 py-2 rounded-sm {if $current == 'sign'}bg-blue-50 text-blue-500{else}text-gray-500 hover:bg-gray-100 hover:text-blue-500 transition-colors{/if}">
                <i class="fas fa-calendar-check mr-3"></i>
                <span>每日签到</span>
            </a>
        </nav>
    </div>
</div>